import { createStore } from 'vuex'
/**
 * 创建仓库和导出
 */
export default createStore({
    state: {
        username:'',
        password:'',
        type:'',
        id:''
    },
    mutations:{
        USERNAME(state,username){
            state.username=username

        },
        PASSWORD(state,password){
            state.password=password
        },
        TYPE(state,type){
            state.type=type
        },
        ID(state,id){
            state.id=id
        }
    },

})